]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: Rename _lastOvershootTimeoutId
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Tue, 9 Aug 2022 21:31:46 +0000 (18:31 -0300)
committerMarge Bot <marge-bot@gnome.org>
Wed, 10 Aug 2022 15:16:36 +0000 (15:16 +0000)
Trivial renaming to _overshootTimeoutId. No functional changes.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2335>

js/ui/appDisplay.js

index 3b43f0d3399f9fda53a0d2a6a3db81e8227658ab..9ede9a6900b9c3998f857144b66ce7e0fa8c55eb 100644 (file)
@@ -637,7 +637,7 @@ var BaseAppView = GObject.registerClass({
             () => this._redisplay(), this);
 
         // Drag n' Drop
-        this._lastOvershootTimeoutId = 0;
+        this._overshootTimeoutId = 0;
         this._delayedMoveData = null;
 
         this._dragBeginId = 0;
@@ -838,9 +838,9 @@ var BaseAppView = GObject.registerClass({
     }
 
     _resetOvershoot() {
-        if (this._lastOvershootTimeoutId)
-            GLib.source_remove(this._lastOvershootTimeoutId);
-        this._lastOvershootTimeoutId = 0;
+        if (this._overshootTimeoutId)
+            GLib.source_remove(this._overshootTimeoutId);
+        this._overshootTimeoutId = 0;
     }
 
     _handleDragOvershoot(dragEvent) {
@@ -856,7 +856,7 @@ var BaseAppView = GObject.registerClass({
             return;
         }
 
-        if (this._lastOvershootTimeoutId > 0)
+        if (this._overshootTimeoutId > 0)
             return;
 
         let targetPage;
@@ -868,14 +868,14 @@ var BaseAppView = GObject.registerClass({
         if (targetPage < 0 || targetPage >= this._grid.nPages)
             return; // don't go beyond first/last page
 
-        this._lastOvershootTimeoutId =
+        this._overshootTimeoutId =
             GLib.timeout_add(GLib.PRIORITY_DEFAULT, OVERSHOOT_TIMEOUT, () => {
                 this._resetOvershoot();
                 this.goToPage(targetPage);
                 return GLib.SOURCE_REMOVE;
             });
-        GLib.Source.set_name_by_id(this._lastOvershootTimeoutId,
-            '[gnome-shell] this._lastOvershootTimeoutId');
+        GLib.Source.set_name_by_id(this._overshootTimeoutId,
+            '[gnome-shell] this._overshootTimeoutId');
     }
 
     _onDragBegin() {